﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserMasterPage.Master" AutoEventWireup="true"
    CodeBehind="UpdateCustomerInfo.aspx.cs" Inherits="InsuranceVehicle.UpdateCustomerInfo" %>

<%@ Register Src="UserMenuControl.ascx" TagName="UserMenuControl" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="title" runat="server">
    My Account
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="menuPlace" runat="server">
    <uc1:UserMenuControl ID="UserMenuControl1" runat="server" SelectedMenu="my_account" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="mainContent" runat="server">
    <div style="width: 500px; margin: auto;">
        <asp:Panel ID="panelUpdate" runat="server">
            <center>
                <h2 style="font-size: 25px">
                    Your infomation</h2>
                <br />
                <asp:LinkButton ID="linkPass" runat="server" OnClick="linkPass_Click">Update Password</asp:LinkButton>
            </center>
            <%---------%>
            <div style="text-align: center">
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" Font-Italic="True"
                    Font-Size="Medium" ForeColor="Red" />
                <asp:Label ID="lblError" runat="server" Text="lblError" Font-Italic="True" Font-Size="Medium"
                    ForeColor="Red" Visible="false"></asp:Label>
            </div>
            <%---------%>
            <asp:Label ID="lblFirstname" runat="server" Text="Firstname" CssClass="label"></asp:Label><br />
            <asp:TextBox ID="txtFirstname" CssClass="text" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFirstname"
                Display="None" ErrorMessage="Please, Enter your Firstname" SetFocusOnError="True"></asp:RequiredFieldValidator>
            <p>
            </p>
            <%---------%>
            <asp:Label ID="lblLastname" runat="server" Text="Lastname" CssClass="label"></asp:Label><br />
            <asp:TextBox ID="txtLastname" CssClass="text" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtLastname"
                Display="None" ErrorMessage="Please, enter you lastname" SetFocusOnError="True"></asp:RequiredFieldValidator>
            <p>
            </p>
            <%---------%>
            <asp:Label ID="Label1" runat="server" Text="Personal Identity" CssClass="label"></asp:Label><br />
            <asp:TextBox ID="txtPersonalIdentity" CssClass="text" runat="server" ReadOnly="True"></asp:TextBox>
            <br />
            <br />
            <asp:Label ID="lblAccount" runat="server" Text="Account" CssClass="label"></asp:Label>
            <br />
            <asp:TextBox ID="txtAccount" runat="server" CssClass="text" ReadOnly="True"></asp:TextBox>
            <br />
            <br />
            <asp:Label ID="lblJob" runat="server" Text="Job" CssClass="label"></asp:Label><br />
            <asp:TextBox ID="txtJob" runat="server" CssClass="text"></asp:TextBox>
            <br />
            <br />
            <asp:Label ID="lblDob" runat="server" CssClass="label" Text="Day of Birth"></asp:Label><br />
            <br />
            Month:
            <asp:DropDownList ID="cbbMonth" runat="server" CssClass="dropdown">
            </asp:DropDownList>
            Day:
            <asp:DropDownList ID="cbbDay" runat="server" CssClass="dropdown">
            </asp:DropDownList>
            Year:
            <asp:DropDownList ID="cbbYear" runat="server" CssClass="dropdown">
            </asp:DropDownList>
            <%---------%>
            <p>
            </p>
            <asp:Label ID="Label7" runat="server" Text="Address" CssClass="label"></asp:Label><br />
            <asp:TextBox ID="txtAddress" CssClass="text" runat="server"></asp:TextBox>
            <%---------%>
            <p>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtAddress"
                    Display="None" ErrorMessage="Please, enter your address" SetFocusOnError="True"></asp:RequiredFieldValidator>
            </p>
            <asp:Label ID="Label8" runat="server" Text="Phone" CssClass="label"></asp:Label><br />
            <asp:TextBox ID="txtPhone" CssClass="text" runat="server"></asp:TextBox>
            <%---------%>
            <p>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtPhone"
                    Display="None" ErrorMessage="Please, enter your phone number" SetFocusOnError="True"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtPhone"
                    Display="None" EnableTheming="True" ErrorMessage="Your phone number is invalid"
                    SetFocusOnError="True" ValidationExpression="^[0-9]+$"></asp:RegularExpressionValidator>
            </p>
            <asp:Label ID="Label9" runat="server" Text="Email" CssClass="label"></asp:Label><br />
            <asp:TextBox ID="txtEmail" CssClass="text" runat="server"></asp:TextBox>
            <%---------%>
            <p>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtEmail"
                    Display="None" ErrorMessage="Please, enter your email"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtEmail"
                    Display="None" ErrorMessage="Your email is invalid" SetFocusOnError="True" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </p>
            <center>
                <asp:Button ID="btnUpdateInfo" runat="server" Text="Update Info" CssClass="button"
                    OnClick="btnSubmit_Click" />
            </center>
            <br />
        </asp:Panel>
        <asp:Panel ID="panelUpdatePass" runat="server">
            <center>
                <h2 style="font-size: 25px">
                    Update password</h2>
                <asp:LinkButton ID="linkInfo" runat="server" OnClick="linkInfo_Click"> Update Infomation</asp:LinkButton>
                <br />
            </center>
            <br />
            <asp:Label ID="Label3" runat="server" Text="Old Password" CssClass="label"></asp:Label><br />
            <asp:TextBox ID="txtOlbPassword" CssClass="text" runat="server" TextMode="Password"></asp:TextBox>
            <br />
            <br />
            <asp:Label ID="lblPassword" runat="server" Text="New Password" CssClass="label"></asp:Label><br />
            <asp:TextBox ID="txtNewPasword" CssClass="text" runat="server" TextMode="Password"></asp:TextBox>
            <br />
            <br />
            <asp:Label ID="Label2" runat="server" Text="Confirm Password" CssClass="label"></asp:Label><br />
            <asp:TextBox ID="txtConPass" runat="server" CssClass="text" TextMode="Password"></asp:TextBox>
            <br />
            <br />
            <center>
                <asp:Button ID="btnUpdatePass" runat="server" Text="Update Password" CssClass="button"
                    CausesValidation="False" OnClick="btnUpdatePass_Click" />
            </center>
        </asp:Panel>
        <asp:Panel ID="panelFalse" runat="server">
            <center>
                <h2 style="font-size: 20px; color: red">
                    <asp:Label ID="lblNotLogin" runat="server"></asp:Label>
                    </h2>
            </center>
            
        </asp:Panel>
    </div>
</asp:Content>
